QT = core
QT += serialport
QT += network mqtt
QT += sql
QT += gui

CONFIG += c++17 cmdline
CONFIG += no_batch

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        cloud/cloud_http.cpp \
        common.cpp \
        controlboard/controlboard.cpp \
        papercontrol/papercontrol.cpp \
        coordinator/coordinator.cpp \
        datastorage/datastorage.cpp \
        fingerprint/command.cpp \
        fingerprint/communication.cpp \
        fingerprint/crypt/base64.cpp \
        fingerprint/crypt/crypt_user.cpp \
        fingerprint/crypt/md5.cpp \
        fingerprint/crypt/rsa.cpp \
        fingerprint/crypt/tea/xtea.cpp \
        fingerprint/crypt/utils/bigint.cpp \
        fingerprint/device.cpp \
        fingerprint/fingerprint.cpp \
        fingerprint/usbcommand.cpp \
        log/logging.cpp \
        main.cpp \
        notecounter/notecount_controller.cpp \
        printer/prt_controller.cpp \
        qt-aes/qaesencryption.cpp \
        setting/JSON_settings.cpp \
        setting/version.cpp \
        surveillance/surveillance.cpp \
        ui_ctrl/ui_controller.cpp \
        ui_ctrl/ui_widgets.cpp

TRANSLATIONS += \
    rh530_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    cloud/cloud_http.h \
    common.h \
    controlboard/controlboard.h \
    papercontrol/papercontrol.h \
    coordinator/coordinator.h \
    datastorage/datastorage.h \
    fingerprint/communication.h \
    fingerprint/crypt/base64.h \
    fingerprint/crypt/crypt_user.h \
    fingerprint/crypt/md5.h \
    fingerprint/crypt/rsa.h \
    fingerprint/crypt/tea/xtea.h \
    fingerprint/crypt/utils/bigint.h \
    fingerprint/crypt/utils/random.h \
    fingerprint/crypt/utils/types.h \
    fingerprint/crypt/utils/utility.h \
    fingerprint/define.h \
    fingerprint/device.h \
    fingerprint/fingerprint.h \
    fingerprint/usbcommand.h \
    notecounter/notecounter_controller.h \
    printer/prt_controller.h \
    qt-aes/aesni/aesni-enc-cbc.h \
    qt-aes/aesni/aesni-enc-ecb.h \
    qt-aes/aesni/aesni-key-exp.h \
    qt-aes/aesni/aesni-key-init.h \
    qt-aes/qaesencryption.h \
    setting/JSON_settings.h \
    setting/version.h \
    surveillance/surveillance.h \
    ui_ctrl/ui_controller.h \
    ui_ctrl/ui_widgets.h

unix:buildnum.commands = ../setting/inc_build_number.sh
unix:QMAKE_EXTRA_TARGETS += buildnum
unix:PRE_TARGETDEPS += buildnum
